package base;

import java.util.Vector;

import db.DB_tools;

public class Person {
	protected static String name;//all information belong to the class.
	protected static String password;
	protected static String level;
	protected static int id;
	
	public Person(String name, String password, String level, int id){
		this.name = name;
		this.password = password;
		this.level = level;
		this.id = id;
	}
	

	public Person(){}
	
	public String getName(){
		return this.name;
	}
	
	public void finishAssignment(String tid)
	{
		try{
		DB_tools.finishAssignment(tid);
		}catch(Exception e){
			e.printStackTrace();
		}
	}
	
	public int getID(){
		return this.id;
	}
	public String getLevel(){
		return this.level;
	}
	
	//abstract public int checkAttendance();
	
	//abstract public String[][] getAttendance();
	
	//abstract public String[][] getAssignment();
	
	//public String[][] getBulletin()
	//{
		//return 
	//}
}